<?php
include './pkj/all.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <title>LAB</title>
        <?php import('all'); ?>
    </head>
    <form>
        <?php
        Form::Label('Nome');
        Form::Text('nome');
        Form::Label('Telefone');
        Form::Mask('telefone', '99 9999 9999');
        Form::Button('Enviar', 'click="teste()"');

        function teste($form) {
//            popup("$form[nome] $form[telefone]");
            if (!query("selecte a as a")) {
                notice(bd_get_error(),'error');
            }
        }
        ?>
    </form>
</body>
</html>
